From: Jonas Dreßler Date: Tue, 30 Apr 2024 15:50:20 +0000 (+0200) Subject: appDisplay: Remove action mode limitation for swipe tracker X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~104^2^2~39 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ca80a3cd5d0c6b20ff55b4dc8b1c345aed8a3263;p=gnome-shell.git appDisplay: Remove action mode limitation for swipe tracker Now that we no longer have the swipe tracker on the stage, but rather on the actual actor that the gesture is happening on, we don't have to limit it to specific ActionModes anymore, so remove that. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index b6479ae17..e09c97d6f 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -469,12 +469,6 @@ class BaseAppViewGridLayout extends Clutter.BinLayout { var BaseAppView = GObject.registerClass({ GTypeFlags: GObject.TypeFlags.ABSTRACT, - Properties: { - 'gesture-modes': GObject.ParamSpec.flags( - 'gesture-modes', null, null, - GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY, - Shell.ActionMode, Shell.ActionMode.OVERVIEW), - }, Signals: { 'view-loaded': {}, }, @@ -607,7 +601,7 @@ var BaseAppView = GObject.registerClass({ // Swipe this._swipeTracker = new SwipeTracker.SwipeTracker(this._scrollView, Clutter.Orientation.HORIZONTAL, - this.gestureModes, + Shell.ActionMode.ALL, { name: 'AppDisplay swipe tracker', }); @@ -2119,7 +2113,6 @@ class FolderView extends BaseAppView { layout_manager: new Clutter.BinLayout(), x_expand: true, y_expand: true, - gesture_modes: Shell.ActionMode.POPUP, }); // If it not expand, the parent doesn't take into account its preferred_width when allocating